const CracoLessPlugin = require("craco-less");
const path = require("path");

module.exports = {
  plugins: [
    {
      plugin: CracoLessPlugin,
    },
  ],
  webpack: {
    alias: {
      "@": path.resolve(__dirname, "src"),
    },
  },
  //配置代理解决跨域
  devServer: {
    proxy: {
      "/fmcrm": {
        target: "http://39.107.231.173:3004",
        changeOrigin: true,
        secure: false,
        pathRewrite: {
          "^/fmcrm": "",
        },
      },
    },
  },
  // ...
};
